<?php
namespace App\Api\V1\Controllers;

use App\Models\Tao\TaoGoods;
use App\Models\Tao\TaoHelp;
use App\Models\User\PointsList;

/**
 * Created by PhpStorm.
 * User: ZhangWei
 * Date: 2017/3/20
 * Time: 16:33
 */
class TaoController extends BaseController
{

    public function get_list()
    {

        $users = TaoGoods::orderBy('updated_at', 'desc')->where('is_tkl', 1)->paginate(15);
        return $this->response->array($users);
    }

    public function get_help()
    {
        $users = TaoHelp::orderBy('id', 'desc')->paginate(15);
        return $this->response->array($users);
    }

}